home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / ColorSync SDK / Documentation / Embedding Profile Documentation / Embedding ICC Profiles in JFIF < prev    next >
Encoding:
Text File  |  1998-02-03  |  1.3 KB  |  22 lines  |  [TEXT/ttxt]

  1. Embedding ICC Profiles in JFIF Files
  2.  
  3. The JPEG standard (ISO DIS 10918-1) supports application specific data
  4. segments. These segments may be used for tagging images with ICC profiles.
  5. The APP2 marker is used to introduce the tag. Given that there are only 15
  6. supported APP markers, there is a chance of many applications using the same
  7. marker. ICC tags are thus identified by beginning the data with a special null
  8. terminated byte sequence, "ICC_PROFILE".
  9.  
  10. The length field of a JPEG marker is only two bytes long; the length of the length
  11. field is included in the total. Hence, the values 0 and 1 are not legal lengths. This
  12. would limit maximum data length to 65533. The identification sequence would
  13. lower this even further. As it is quite possible for an ICC profile to be longer
  14. than this, a mechanism must exist to break the profile into chunks and place
  15. each chunk in a separate marker. A mechanism to identify each chunk in
  16. sequence order would thus be useful.
  17.  
  18. The identifier sequence is followed by one byte indicating the sequence number
  19. of the chunk (counting starts at 1) and one byte indicating the total number of
  20. chunks. All chunks in the sequence must indicate the same total number of
  21. chunks. The one-byte chunk count limits the size of embeddable profiles to
  22. 16,707,345 bytes.